package com.example.index.web;


import com.example.index.biz.ParamBiz;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
// 属性值动态刷新
@RefreshScope
public class ParamsAction {

    @Resource
    private ParamBiz paramBiz;

    @RequestMapping("paramBiz")
    public ParamBiz getParamBiz(){
        return paramBiz;
    }

}
